package com.zk.spring5.dao;

import com.zk.spring5.bean.User;

import java.util.List;

/**
 * @author ZK
 * @Description
 * @time 2021/5/5 22:41
 * @note
 */
public interface UserDao {
    int addUser(User user);

    int updateUser(User user);

    int deleteUser(Integer userId);

    int getCount();

    User getOneUserById(Integer userId);

    List<User> getAllUsers();

    int[] batchAddUsers(List<Object[]> batchArgs);

    int[] batchDeleteUsers(List<Object[]> batchArgs);

    int[] batchUpdateUsers(List<Object[]> batchArgs);
}
